package cc.decat.escript.ir.statement;

import cc.decat.escript.ir.Node;
import cc.decat.escript.ir.Visitor;

import java.util.List;

public class CallFunctionStatement extends Node {
    private final Node expression;
    private final List<Node> args;

    public CallFunctionStatement(Node expression, List<Node> args) {
        this.expression = expression;
        this.args = args;
    }

    public Node getExpression() {
        return expression;
    }

    public List<Node> getArgs() {
        return args;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
}
